using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.IO;

namespace Chat.Util
{
    public struct User
    {
        public string ip;
        public ushort port;
        public string name;
        public string id;
        public bool isOnline;
        public Socket socket;

    }


    public struct Head
    {
        public byte[] boot;
        public byte flag;
        public string ip;
        public ushort port;
        public string id;
        public string name;
        public int len;
    }




    public struct FromMsg
    {
        public string fromId;
        public string fromName;
        public string fromIp;
        public ushort fromPort;
        public string msg;
    }

    public struct ToMsg
    {
        public string toId;
        public string toName;
        public string toIp;
        public ushort toPort;
        public string msg;
    }
}
